package com.xce.storage.config;

import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName OpenApiConfig
 * @Description TODO
 * @Author lld
 * @Date 2025/7/9 2:07
 * @Version 1.0
 */
@Configuration
public class OpenApiConfig {

    @Bean
    public GroupedOpenApi userApi() {
        return GroupedOpenApi.builder()
                .group("库存模块")
                .packagesToScan("com.xce.storage.controller") // 控制哪些包会生成文档
                .build();
    }
}

